﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SliderMain.ascx.cs" Inherits="Controls_SliderMain" %>
<%@ Register Src="~/Controls/Menu/Siderbar_Left.ascx" TagPrefix="uc1" TagName="Siderbar_Left" %>

<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
    <HeaderTemplate>
        <div class="slider">
            <div class="row">
                <div class="col-md-3">
                    <uc1:Siderbar_Left runat="server" ID="Siderbar_Left" />
                </div>
                <div class="col-md-9 pull-right">
                    <div id="carousel-banner" class="carousel slide" data-ride="carousel">
                        <div class="carousel-inner">
    </HeaderTemplate>
    <ItemTemplate>
        <div class="item">
            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("herf","../{0}")%>'>
            <img src='<%# Eval("Img")%>' alt="..." />
                </asp:HyperLink>
        </div>
    </ItemTemplate>
    <FooterTemplate>
        </div>
                    <!-- Controls -->
        <a class="left carousel-control" href="#carousel-banner" data-slide="prev">
            <span class="glyphicon glyphicon-chevron-left"></span>
        </a>
        <a class="right carousel-control" href="#carousel-banner" data-slide="next">
            <span class="glyphicon glyphicon-chevron-right"></span>
        </a>
        </div>
            </div>
        </div>
</div>
    </FooterTemplate>
</asp:Repeater>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
    ConnectionString="<%$ ConnectionStrings:QLBSConnectionString %>"
    SelectCommand="SELECT ID, Herf, [Content], Oder, Img, Active, Type FROM Banner WHERE (Active = 'true') AND (Type = 'banner') ORDER BY Oder"></asp:SqlDataSource>



